import service from '@/utils/request'

// @Tags UserOrderPay
// @Summary 创建UserOrderPay
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOrderPay true "创建UserOrderPay"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userOrderPay/createUserOrderPay [post]
export const createUserOrderPay = (data) => {
     return service({
         url: "/userOrderPay/createUserOrderPay",
         method: 'post',
         data
     })
 }


// @Tags UserOrderPay
// @Summary 删除UserOrderPay
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOrderPay true "删除UserOrderPay"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userOrderPay/deleteUserOrderPay [delete]
 export const deleteUserOrderPay = (data) => {
     return service({
         url: "/userOrderPay/deleteUserOrderPay",
         method: 'delete',
         data
     })
 }

// @Tags UserOrderPay
// @Summary 删除UserOrderPay
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除UserOrderPay"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userOrderPay/deleteUserOrderPay [delete]
 export const deleteUserOrderPayByIds = (data) => {
     return service({
         url: "/userOrderPay/deleteUserOrderPayByIds",
         method: 'delete',
         data
     })
 }

// @Tags UserOrderPay
// @Summary 更新UserOrderPay
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOrderPay true "更新UserOrderPay"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userOrderPay/updateUserOrderPay [put]
 export const updateUserOrderPay = (data) => {
     return service({
         url: "/userOrderPay/updateUserOrderPay",
         method: 'put',
         data
     })
 }


// @Tags UserOrderPay
// @Summary 用id查询UserOrderPay
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOrderPay true "用id查询UserOrderPay"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userOrderPay/findUserOrderPay [get]
 export const findUserOrderPay = (params) => {
     return service({
         url: "/userOrderPay/findUserOrderPay",
         method: 'get',
         params
     })
 }


// @Tags UserOrderPay
// @Summary 分页获取UserOrderPay列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取UserOrderPay列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userOrderPay/getUserOrderPayList [get]
 export const getUserOrderPayList = (params) => {
     return service({
         url: "/userOrderPay/getUserOrderPayList",
         method: 'get',
         params
     })
 }